/**
 * Copyright (C), 2020-2021 by colley.ma
 * File Name: ArchivemailConfig.java
 * Encoding: UTF-8
 * Date: 2021年10月12日 下午2:15:17
 * History:
 */
package com.swak.frame.datarchive.config;

import org.springframework.boot.context.properties.ConfigurationProperties;

import com.swak.frame.datarchive.constants.DataArchiveConstants;

@ConfigurationProperties(prefix = DataArchiveConstants.EMAIL)
public class ArchivemailConfig {

	/**host**/
    private String host;

    /***ß
     * 端口port
     */
    private int port;

    /**
     * 默认字符集 utf-8
     */
    private String defaultEncoding;

    /**
     * 用户名
     */
    private String username;

    /**
     * 密码
     */
    private String password;

    /**发件人名称**/
    private String senderName;

    /**
     * 发件人
     */
    private String sender; // 发件人

    /**
     * 是否smtpAuth
     */
    private boolean smtpAuth;

    /**
     * 是否debug
     */
    private boolean debug;

    public String getHost() {
        return host;
    }

    public void setHost(String host) {
        this.host = host;
    }

    public int getPort() {
        return port;
    }

    public void setPort(int port) {
        this.port = port;
    }

    public String getDefaultEncoding() {
        return defaultEncoding;
    }

    public void setDefaultEncoding(String defaultEncoding) {
        this.defaultEncoding = defaultEncoding;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getSenderName() {
        return senderName;
    }

    public void setSenderName(String senderName) {
        this.senderName = senderName;
    }

    public String getSender() {
        return sender;
    }

    public void setSender(String sender) {
        this.sender = sender;
    }

    public boolean isSmtpAuth() {
        return smtpAuth;
    }

    public void setSmtpAuth(boolean smtpAuth) {
        this.smtpAuth = smtpAuth;
    }

    public boolean isDebug() {
        return debug;
    }

    public void setDebug(boolean debug) {
        this.debug = debug;
    }
}
